import url from '@/tool/index.js'
export const userInfo = (info) => { //
	return new Promise(resolve => {
		uni.request({
			url: url+'/api/user.user/profile',
			data: {
				avatar:info.avatar,
				nickname:info.nickname,
				mobile:info.mobile,
				gender:info.gender,
				address:info.address,
				token:uni.getStorageSync('userToken')
			},
			method: 'GET',
			success: (res) => resolve(res.data)
		});
	})
}